-- GENERATED SPELL FOR [Disciple of Frost] --


function spell0_28490(pUnit, Event) --@Howling Blast,n/a--
pUnit:FullCastSpellOnTarget(53536,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28490', 567, 1)
end

function spell1_28490(pUnit, Event) --@Hungering Cold,n/a--
pUnit:FullCastSpellOnTarget(53570,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28490', 20257, 1)
end

function spell2_28490(pUnit, Event) --@Icy Touch,n/a--
pUnit:FullCastSpellOnTarget(53549,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28490', 665, 1)
end

function spell3_28490(pUnit, Event) --@Mind Freeze,n/a--
pUnit:FullCastSpellOnTarget(53550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28490', 4324, 1)
end

function Sorts_28490(pUnit, Event)
local choix_sorts_28490 = math.random(0, 3)
if choix_sorts_28490 == 0 then
pUnit:RegisterEvent('spell0_28490', 1, 1)
end
if choix_sorts_28490 == 1 then
pUnit:RegisterEvent('spell1_28490', 1, 1)
end
if choix_sorts_28490 == 2 then
pUnit:RegisterEvent('spell2_28490', 1, 1)
end
if choix_sorts_28490 == 3 then
pUnit:RegisterEvent('spell3_28490', 1, 1)
end
end

function mob28490_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28490', math.random(1500, 3000), 1)
end

function mob28490_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28490_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28490_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28490, 1, 'mob28490_Action')
RegisterUnitEvent(28490, 2, 'mob28490_Leave')
RegisterUnitEvent(28490, 3, 'mob28490_Kill')
RegisterUnitEvent(28490, 4, 'mob28490_Die')
